package com.hutao.medical.controller;

import java.text.ParseException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hutao.medical.query.AuditQuery;
import com.hutao.medical.service.MedicalModifyService;

@Controller
@RequestMapping("/modify")
public class MedicalModifyController {
	
	@Autowired
	private MedicalModifyService medicalModifyService;

	@ResponseBody
	@RequestMapping("/add")
	public String addMedicalModify(AuditQuery auditQuery) throws ParseException{
	List<String> firstGuidList = medicalModifyService.getFirstGuidByOutHospTime(auditQuery);
		medicalModifyService.addModifyError(firstGuidList);
		return "success";
	}
}
